<template>
  <ul>
    <li v-for="(item, index) in iconsList" :key="index">
      <img :src="item.imgurl" alt="" />
      <span> {{ item.title }}</span>
    </li>
  </ul>
</template>

<script>
export default {
  name: "myIcons",
  data() {
    return {
      iconsList: [
        { id: 1, title: "自饮茶", imgurl: "./images/icons1.png" },
        { id: 2, title: "茶具", imgurl: "./images/icons2.png" },
        { id: 3, title: "茶礼盒", imgurl: "./images/icons3.png" },
        { id: 4, title: "领福利", imgurl: "./images/icons4.png" },
        { id: 5, title: "官方验证", imgurl: "./images/icons5.png" },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
ul {
  display: flex;
  padding: 10px 0;
  font-size: 16px;
  justify-content: space-around;
  img {
    width: 40px;
    padding-bottom: 10px;
  }
}
ul li {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
}
</style>